3.51 \(\int \frac {\cot ^7(c+d x)}{a+a \sin (c+d x)} \, dx\)

Optimal. Leaf size=68 \[ -\frac {\cot ^6(c+d x)}{6 a d}+\frac {\csc ^5(c+d x)}{5 a d}-\frac {2 \csc ^3(c+d x)}{3 a d}+\frac {\csc (c+d x)}{a d} \]

[Out]

-1/6*cot(d*x+c)^6/a/d+csc(d*x+c)/a/d-2/3*csc(d*x+c)^3/a/d+1/5*csc(d*x+c)^5/a/d

________________________________________________________________________________________

Rubi [A]  time = 0.09, antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {2706, 2607, 30, 2606, 194} \[ -\frac {\cot ^6(c+d x)}{6 a d}+\frac {\csc ^5(c+d x)}{5 a d}-\frac {2 \csc ^3(c+d x)}{3 a d}+\frac {\csc (c+d x)}{a d} \]

Antiderivative was successfully verified.

[In]

Int[Cot[c + d*x]^7/(a + a*Sin[c + d*x]),x]

[Out]

-Cot[c + d*x]^6/(6*a*d) + Csc[c + d*x]/(a*d) - (2*Csc[c + d*x]^3)/(3*a*d) + Csc[c + d*x]^5/(5*a*d)

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 194

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Int[ExpandIntegrand[(a + b*x^n)^p, x], x] /; FreeQ[{a, b}, x]
&& IGtQ[n, 0] && IGtQ[p, 0]

Rule 2606

Int[((a_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((b_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[a/f, Subst[
Int[(a*x)^(m - 1)*(-1 + x^2)^((n - 1)/2), x], x, Sec[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n -
1)/2] &&  !(IntegerQ[m/2] && LtQ[0, m, n + 1])

Rule 2607

Int[sec[(e_.) + (f_.)*(x_)]^(m_)*((b_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[1/f, Subst[Int[(b*x)
^n*(1 + x^2)^(m/2 - 1), x], x, Tan[e + f*x]], x] /; FreeQ[{b, e, f, n}, x] && IntegerQ[m/2] &&  !(IntegerQ[(n
- 1)/2] && LtQ[0, n, m - 1])

Rule 2706

Int[((g_.)*tan[(e_.) + (f_.)*(x_)])^(p_.)/((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[1/a, Int[S
ec[e + f*x]^2*(g*Tan[e + f*x])^p, x], x] - Dist[1/(b*g), Int[Sec[e + f*x]*(g*Tan[e + f*x])^(p + 1), x], x] /;
FreeQ[{a, b, e, f, g, p}, x] && EqQ[a^2 - b^2, 0] && NeQ[p, -1]

Rubi steps

\begin {align*} \int \frac {\cot ^7(c+d x)}{a+a \sin (c+d x)} \, dx &=-\frac {\int \cot ^5(c+d x) \csc (c+d x) \, dx}{a}+\frac {\int \cot ^5(c+d x) \csc ^2(c+d x) \, dx}{a}\\ &=-\frac {\operatorname {Subst}\left (\int x^5 \, dx,x,-\cot (c+d x)\right )}{a d}+\frac {\operatorname {Subst}\left (\int \left (-1+x^2\right )^2 \, dx,x,\csc (c+d x)\right )}{a d}\\ &=-\frac {\cot ^6(c+d x)}{6 a d}+\frac {\operatorname {Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,\csc (c+d x)\right )}{a d}\\ &=-\frac {\cot ^6(c+d x)}{6 a d}+\frac {\csc (c+d x)}{a d}-\frac {2 \csc ^3(c+d x)}{3 a d}+\frac {\csc ^5(c+d x)}{5 a d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.14, size = 61, normalized size = 0.90 \[ \frac {\csc ^6(c+d x) (78 \sin (c+d x)-5 (7 \sin (3 (c+d x))-3 \sin (5 (c+d x))+5)-15 \cos (4 (c+d x)))}{240 a d} \]

Antiderivative was successfully verified.

[In]

Integrate[Cot[c + d*x]^7/(a + a*Sin[c + d*x]),x]

[Out]

(Csc[c + d*x]^6*(-15*Cos[4*(c + d*x)] + 78*Sin[c + d*x] - 5*(5 + 7*Sin[3*(c + d*x)] - 3*Sin[5*(c + d*x)])))/(2
40*a*d)

________________________________________________________________________________________

fricas [A]  time = 0.42, size = 96, normalized size = 1.41 \[ \frac {15 \, \cos \left (d x + c\right )^{4} - 15 \, \cos \left (d x + c\right )^{2} - 2 \, {\left (15 \, \cos \left (d x + c\right )^{4} - 20 \, \cos \left (d x + c\right )^{2} + 8\right )} \sin \left (d x + c\right ) + 5}{30 \, {\left (a d \cos \left (d x + c\right )^{6} - 3 \, a d \cos \left (d x + c\right )^{4} + 3 \, a d \cos \left (d x + c\right )^{2} - a d\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)^7/(a+a*sin(d*x+c)),x, algorithm="fricas")

[Out]

1/30*(15*cos(d*x + c)^4 - 15*cos(d*x + c)^2 - 2*(15*cos(d*x + c)^4 - 20*cos(d*x + c)^2 + 8)*sin(d*x + c) + 5)/
(a*d*cos(d*x + c)^6 - 3*a*d*cos(d*x + c)^4 + 3*a*d*cos(d*x + c)^2 - a*d)

________________________________________________________________________________________

giac [A]  time = 0.97, size = 66, normalized size = 0.97 \[ \frac {30 \, \sin \left (d x + c\right )^{5} - 15 \, \sin \left (d x + c\right )^{4} - 20 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )^{2} + 6 \, \sin \left (d x + c\right ) - 5}{30 \, a d \sin \left (d x + c\right )^{6}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)^7/(a+a*sin(d*x+c)),x, algorithm="giac")

[Out]

1/30*(30*sin(d*x + c)^5 - 15*sin(d*x + c)^4 - 20*sin(d*x + c)^3 + 15*sin(d*x + c)^2 + 6*sin(d*x + c) - 5)/(a*d
*sin(d*x + c)^6)

________________________________________________________________________________________

maple [A]  time = 0.25, size = 67, normalized size = 0.99 \[ \frac {-\frac {1}{6 \sin \left (d x +c \right )^{6}}+\frac {1}{\sin \left (d x +c \right )}+\frac {1}{5 \sin \left (d x +c \right )^{5}}-\frac {1}{2 \sin \left (d x +c \right )^{2}}+\frac {1}{2 \sin \left (d x +c \right )^{4}}-\frac {2}{3 \sin \left (d x +c \right )^{3}}}{d a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(d*x+c)^7/(a+a*sin(d*x+c)),x)

[Out]

1/d/a*(-1/6/sin(d*x+c)^6+1/sin(d*x+c)+1/5/sin(d*x+c)^5-1/2/sin(d*x+c)^2+1/2/sin(d*x+c)^4-2/3/sin(d*x+c)^3)

________________________________________________________________________________________

maxima [A]  time = 0.30, size = 66, normalized size = 0.97 \[ \frac {30 \, \sin \left (d x + c\right )^{5} - 15 \, \sin \left (d x + c\right )^{4} - 20 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )^{2} + 6 \, \sin \left (d x + c\right ) - 5}{30 \, a d \sin \left (d x + c\right )^{6}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)^7/(a+a*sin(d*x+c)),x, algorithm="maxima")

[Out]

1/30*(30*sin(d*x + c)^5 - 15*sin(d*x + c)^4 - 20*sin(d*x + c)^3 + 15*sin(d*x + c)^2 + 6*sin(d*x + c) - 5)/(a*d
*sin(d*x + c)^6)

________________________________________________________________________________________

mupad [B]  time = 6.79, size = 63, normalized size = 0.93 \[ \frac {{\sin \left (c+d\,x\right )}^5-\frac {{\sin \left (c+d\,x\right )}^4}{2}-\frac {2\,{\sin \left (c+d\,x\right )}^3}{3}+\frac {{\sin \left (c+d\,x\right )}^2}{2}+\frac {\sin \left (c+d\,x\right )}{5}-\frac {1}{6}}{a\,d\,{\sin \left (c+d\,x\right )}^6} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(c + d*x)^7/(a + a*sin(c + d*x)),x)

[Out]

(sin(c + d*x)/5 + sin(c + d*x)^2/2 - (2*sin(c + d*x)^3)/3 - sin(c + d*x)^4/2 + sin(c + d*x)^5 - 1/6)/(a*d*sin(
c + d*x)^6)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\cot ^{7}{\left (c + d x \right )}}{\sin {\left (c + d x \right )} + 1}\, dx}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(d*x+c)**7/(a+a*sin(d*x+c)),x)

[Out]

Integral(cot(c + d*x)**7/(sin(c + d*x) + 1), x)/a

________________________________________________________________________________________